package Coding.Exception;

public class TryCatch {

    public static void main(String[] args) {


        System.out.println("程序开始了");
        try {
            String str = null;
            System.out.println(str.toLowerCase());
        } catch (NullPointerException e) {
            System.out.println("出现了空指针，已经处理了");
        }

        System.out.println("程序结束了");
    }
}
